<?php
	define('RUN_KATANA', true);
	define('RUN_RSS', true);
	header("Cache-Control: must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); 
	header("Pragma: no-cache"); 
	header("Expires: ".gmdate("D, d M Y H:i:s", mktime(date("H")-2, date("i"), date("s"), date("m"), date("d"), date("Y")))." GMT"); 
	header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
	sleep(0); 
	require('../includes/config.php');
	require('../includes/loader.php');
	require('../includes/core.php');
	echo '<?xml version="1.0" encoding="UTF-8"?>';
	echo '<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">';
	//<feed xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0"
	echo '<channel>';
	
?>
    <title><?php echo $katana->getTitle(); ?></title>
    <link><?php echo $katana->getURL(); ?></link>
    <description><?php 
	if($katana->ActiveCores[6])
	{ 
		echo ucfirst($txt->getWord('latest_ads').' '.$txt->getWord('from').' ');
		if(is_object($adc->getCurrentAdType()))
		{ echo $adc->getCurrentAdType()->getTitle(); }
	}
	?></description>
    <language><?php echo $katana->getLanguage(); ?></language>
    <image>
        <title><?php echo $katana->getTitle(); ?></title>
        <url><?php echo $katana->getURL(); ?>/files/images/Logo.png</url>
        <link><?php echo $katana->getURL(); ?></link>
    </image>
	<?php 
    if($katana->ActiveCores[6])
    { echo $adc->getRss(); }
	
	echo '</channel>';
	echo '</rss>';
    ?>
